<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Java Golf Association - Join</title>
</head>
<body>
	<div id="container">
		<%@ include file="/includes/Navigation.html"%>

		<div id="content">
			<br />
			<h2 style="text-align: center;">Welcome to the Java Golf
				Association! Use this form to Join.</h2>
			<br />
			<sf:form action="add.htm" method="POST" commandName="JoinForm">
				<table>
					<tr>
						<td colspan=3 class="error">
							<c:forEach items="${messages}" var="message">
							   <c:out value="${message}"/><br />							   
							</c:forEach>
						</td>
					</tr>
					<tr>
						<td><label>First Name:</label></td>
						<td><sf:input path="firstName" /></td>
						<td><sf:errors path="firstName" cssClass="error" /></td>
						<!--  <td><input type="text" name="firstName" id="firstName" width=30/></td>	-->
					</tr>
					<tr>
						<td><label>Last Name:</label></td>
						<td><sf:input path="lastName" /></td>
						<td><sf:errors path="lastName" cssClass="error" /></td>
						<!--  <td><input type="text" name="lastName" id="lastName" width=30/></td>    -->
					</tr>
					<tr>
						<td><label>Email:</label></td>
						<td><sf:input path="email" /></td>
						<td><sf:errors path="email" cssClass="error" /></td>
						<!--  <td><input type="text" name="email" id="email" width=30/></td>    -->
					</tr>
					<tr>
						<td><label>Phone Number:</label></td>
						<td><sf:input path="phonenumber" /></td>
						<td><sf:errors path="phonenumber" cssClass="error" /></td>
						<!--  <td><input type="text" name="phonenumber" id="phonenumber" width=30/></td>    -->
					</tr>
					<tr>
						<td><label>Password:</label></td>
						<td><sf:input path="password" /></td>
						<td><sf:errors path="password" cssClass="error" /></td>
						<!--  <td><input type="text" name="password" id="password" width=30/></td>    -->
					</tr>
					<tr>
						<td colspan=3>
							<button type="submit">Join</button> 
							<input type="button" value="Cancel" onclick="location.href='index.jsp'"/>
						</td>
					</tr>
				</table>
			</sf:form>
			<br />
			<br />
			<%@ include file="/includes/footer.html"%>
		</div>
	</div>
</body>
</html>